﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace HelloWorldPlugin
{
    public class HelloWorld : fApp.ebApp
    {
        appTestForm app = null;
        public string Name
        {
            get
            {
                return "TestApplication";
            }
        }
        public bool showDialog
        {
            get
            {
                return false;
            }
        }

        public HelloWorld()
        {
        }

        public void Run()
        {
            app = new appTestForm();
            fApp.ebAPI.eCtrlApp.Show(app,this);
            app.FormClosed += new FormClosedEventHandler(app_FormClosed);
        }

        void app_FormClosed(object sender, FormClosedEventArgs e)
        {
            fApp.ebAPI.eCtrlApp.endApplication(this.Name);
        }
        public void Dispose()
        {
            if (app != null)
            {
                app.Dispose();
            }
        }
    }
}
